package com.bys.admin.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.bys.config.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author bys
 * @since 2025-02-19
 */
@Getter
@Setter
@TableName("sys_codegen_table")
@Schema(name = "SysCodegenTable对象", description = "")
public class SysCodegenTable extends BaseEntity {

    @Schema(description = "数据源编号")
    private Long dataSourceId;

    @Schema(description = "生成场景")
    private Integer scene;

    @Schema(description = "表名称")
    private String tableName;

    @Schema(description = "表描述")
    private String tableComment;

    @Schema (description = "备注")
    private String remark;

    @Schema(description = "模块名")
    private String moduleName;

    @Schema(description = "业务名")
    private String businessName;

    @Schema(description = "类名称")
    private String className;

    @Schema(description = "类描述")
    private String classComment;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "模板类型")
    private Integer templateType;

    @Schema(description = "代码生成的前端类型")
    private Integer frontType;

    @Schema(description = "父菜单编号")
    private Long parentMenuId;

    @Schema(description = "主表的编号")
    private Long masterTableId;

    @Schema(description = "子表关联主表的字段编号")
    private Long subJoinColumnId;

    @Schema(description = "主表与子表是否一对多")
    private Integer subJoinMany;

    @Schema(description = "树表的父字段编号")
    private Long treeParentColumnId;

    @Schema(description = "树表的名字字段编号")
    private Long treeNameColumnId;

    @Schema(description = "排序")
    private Integer sort;


}
